lib/repo: Add commit version metadata to summary metadata
authorDan Nicholson <dbn@endlessos.org>
Fri, 4 Feb 2022 21:11:06 +0000 (14:11 -0700)
committerDan Nicholson <dbn@endlessos.org>
Fri, 4 Feb 2022 21:28:11 +0000 (14:28 -0700)
commit6fbf759279ca9908e0c7ceb2a3af75b1180fa8a1
tree5fad437182bc276214aeb122776cd89abc28dc45
parenta588295d3a9adbd98547dc7fc72eabcdfb8541fa
lib/repo: Add commit version metadata to summary metadata

The commit metadata `version` key is well established but getting it for
a remote commit is cumbersome since the commit object needs to be
fetched and loaded. Including it in the summary additional metadata
allows a much more convenient view of what each of the remote refs
represents.
man/ostree-summary.xml
src/libostree/ostree-core.h
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c
src/ostree/ot-dump.c
tests/test-summary-view.sh